﻿//-----------------------------------------------------------------------
// <copyright file="Log4NetLogFactory.cs" company="ET">
//     Copyright Mulala. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------

namespace Mulala.Cavan.Infrastructure.CrossCutting.NetFramework
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;

    /// <summary>
    /// log4net log factory
    /// </summary>
    public class Log4NetLogFactory : ILoggerFactory
    {
        #region ILoggerFactory Members

        /// <summary>
        /// Creates the specified logger name.
        /// </summary>
        /// <param name="loggerName">Name of the logger.</param>
        /// <returns>The ILog created</returns>
        public ILogger Create(string loggerName)
        {
            return new Log4NetLog(loggerName);
        }

        /// <summary>
        /// Create a new ILog
        /// </summary>
        /// <returns>The ILog created</returns>
        public ILogger Create()
        {
            return new Log4NetLog("Default");
        }

        #endregion
    }
}
